473,432 Members | 1,629 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,432 software developers and data experts.

Help: MS-Word apostrophes in Query Analyzer

After creating an IN clause from a bunch of character strings created by a
Word macro, Query Analyzer complains about a syntax error. The macro takes a
column full of character strings and wraps apostrophes (single-quotes)
around each string and adds a comma to the end of each line, ready to paste
into a Query Analyzer session. The problem is that Query Analyzer doesn't
recognize the MS-Word apostrophes. It has nothing to do with the standard
apostrophe/quote problems that some people face when dealing with embedded
quotes.

Can anyone suggest how to produce single-quote characters in MS-Word that
Query Analyzer understands?

Thank you.
Jul 20 '05 #1
2 3078
Hi

If this is passed to a stored procedure then you could try the REPLACE
function to alter the affending characters? If you want to insert the
correct character the try Insert/Symbol from the menus and choose ascii
character 27. You could set up a shortcut to do this.

John

"Poster" <Po****@hotmail.com> wrote in message
news:40********@news.chariot.net.au...
After creating an IN clause from a bunch of character strings created by a
Word macro, Query Analyzer complains about a syntax error. The macro takes a column full of character strings and wraps apostrophes (single-quotes)
around each string and adds a comma to the end of each line, ready to paste into a Query Analyzer session. The problem is that Query Analyzer doesn't
recognize the MS-Word apostrophes. It has nothing to do with the standard
apostrophe/quote problems that some people face when dealing with embedded
quotes.

Can anyone suggest how to produce single-quote characters in MS-Word that
Query Analyzer understands?

Thank you.

Jul 20 '05 #2
Poster (Po****@hotmail.com) writes:
After creating an IN clause from a bunch of character strings created by
a Word macro, Query Analyzer complains about a syntax error. The macro
takes a column full of character strings and wraps apostrophes
(single-quotes) around each string and adds a comma to the end of each
line, ready to paste into a Query Analyzer session. The problem is that
Query Analyzer doesn't recognize the MS-Word apostrophes.


As John said, you need to run a Search/Replace somewhere to fix those
"smart" quotes. The best place is probably in the Word macro...

You can also tell Word not to use "smart quotes". ToolS->AutoCorrect
and then the AutoFormat tab, uncheck '"Straight qutoes" with "smart
quotes"'.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Rob Cheshire | last post by:
Hi to all, I need some help deciding on the best database system for our specific application. OPTIONAL INFO: We currently have 2 separate projects that need to be updated from dos-based dBase. ...
2
by: salah961 | last post by:
Hi For example, if I have one of the numbers 6.4, 6.3, 6.2, 6.1 I want the number to be 6 and if the number is 6.6, 6.7, 6.8, 6.9 I want the number to be 7 but I want the number 6.5 without any...
5
by: Benne Smith | last post by:
Hi, I have three enviroments; a development, a testing and a production enviroment. I'm making a big application (.exe), which uses alot of different webservices. I don't use the webservices...
2
by: trialproduct2004 | last post by:
Hi all, i am having c# application. I have bunch of URL's which i want to validate. that means i want to check whether those url's are valid or not. When i start processing url's one by on...
1
by: john | last post by:
Hello, I am trying to convert a project from vb6 to vb.net. The code is a sample from an sdk for Canon digital camera's. I have gotten most of the issues resolved, but there are some that I am...
5
by: Steve | last post by:
I have written a help file (chm) for a DLL and referenced it using Help.ShowHelp My expectation is that a developer using my DLL would be able to access this help file during his development time...
1
by: mkhalid | last post by:
Hi... I am doing an assignment of MS access. I have made 3 tables (One joining table for M:M relationship). When I was trying to make a form (a form with subform) to update the fields, an error...
2
by: Ryan Liu | last post by:
Hi, I installed VS 2005, also its msdn library. But when I click on Start - Program Filees - Microsoft Developer Network - MSDN Library for Visual Studio 2005, it gives me error:
1
by: trunxnirvana007 | last post by:
'UPGRADE_WARNING: Array has a new behavior. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="9B7D5ADD-D8FE-4819-A36C-6DEDAF088CC7"' 'UPGRADE_WARNING: Couldn't resolve...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.